
const cardRoute = [
  {
    path: '/card',
    name: 'Card',
    meta: {
      title: '会员中心'
    },
    component: () => import('@/views/card/')
  },
  {
    path: '/retailer/dashboard',
    name: 'RetailerDashboard',
    props: true,
    meta: {
      title: '商家管理中心'
    },
    component: () => import('@/views/card/dashboard')
  },
  {
    path: '/retailer_verify',
    name: 'RetailerVerify',
    props: true,
    meta: {
      title: '商户审核'
    },
    component: () => import('@/views/user/retailer-verify')
  },
  {
    path: '/retailer/auth',
    name: 'EmployeeAuth',
    redirect: '/retailer/auth/permission',
    props: true,
    meta: {
      title: '授权员工'
    },
    component: () => import('@/views/card/perms-menu'),
    children: [
      {
        path: 'permission',
        name: 'Permission',
        props: true,
        meta: {
          title: '权限设置'
        },
        component: () => import('@/views/card/permission/')
      },
      {
        path: 'employee_perm',
        name: 'EmployeePerm',
        props: true,
        meta: {
          title: '员工授权'
        },
        component: () => import('@/views/card/permission/employee-perm')
      },
      {
        path: 'employee_list',
        name: 'EmployeeList',
        props: true,
        meta: {
          title: '授权查询'
        },
        component: () => import('@/views/card/permission/employee-list')
      },
    ]
  },
  {
    path: '/retailer/card',
    name: 'RetailerCard',
    redirect: "/retailer/card/make_card",
    props: true,
    meta: {
      title: '商家制卡',
      keepAlive: true,
    },
    component: () => import('@/views/card/retailer-card'),
    children: [
      {
        path: 'make_card',
        name: 'CardMake',
        props: true,
        meta: {
          title: '制作品鉴卡'
        },
        component: () => import('@/views/card/card/card-make')
      },
      {
        path: 'card_list',
        name: 'CardList',
        props: true,
        meta: {
          title: '品鉴卡列表',
        },
        component: () => import('@/views/card/card/card-list')
      },
      {
        path: 'upload_card_image/:card_id',
        name: 'CardImage',
        props: true,
        meta: {
          title: '上传优惠卡'
        },
        component: () => import('@/views/card/card/card-image')
      }
    ]
  },
  {
    path: '/appraise/:card_id',
    name: 'Appraise',
    props: true,
    meta: {
      title: '品鉴卡'
    },
    component: () => import('@/views/card/card/appraise')
  },

  {
    path: '/sample/:sample_key',
    name: 'Sample',
    props: true,
    meta: {
      title: '客户品鉴卡'
    },
    component: () => import('@/views/card/card/sample-card')
  },

  {
    path: '/csample_confirm/:sample_key',
    name: 'ClientSampleConfirm',
    props: true,
    meta: {
      title: '品鉴卡核销'
    },
    component: () => import('@/views/card/card/sample-card-confirm')
  },

  {
    path: '/csample_confirm_info/:record_id',
    name: 'ClientSampleConfirmInfo',
    props: true,
    meta: {
      title: '品鉴卡核销成功信息'
    },
    component: () => import('@/views/card/card/sample-card-confirm-info')
  },

  {
    path: '/sample_confirm_list',
    name: 'SampleConfirmList',
    props: true,
    meta: {
      title: '品鉴卡核销记录'
    },
    component: () => import('@/views/card/card/sample-confirm-list')
  },

  // {
  //   path: '/retailer/:card_id/verify',
  //   name: 'RetailerCardVerify',
  //   props: true,
  //   meta: {
  //     title: '商家优惠卡审核'
  //   },
  //   component: () => import('@/views/card/verify/retailer-card-verify')
  // },
  // {
  //   path: '/retailer/:retailer_id/gift',
  //   name: 'RetailerGift',
  //   props: true,
  //   meta: {
  //     title: '优惠卡赠送'
  //   },
  //   component: () => import('@/views/card/gift/')
  // },
  // {
  //   path: '/retailer/:retailer_id/:card_id/card',
  //   name: 'GiftCard',
  //   props: true,
  //   meta: {
  //     title: '赠卡'
  //   },
  //   component: () => import('@/views/card/gift/gift-card')
  // },
  // {
  //   path: '/retailer/:retailer_id/:card_id/gift',
  //   name: 'GiftAction',
  //   props: true,
  //   meta: {
  //     title: '赠送'
  //   },
  //   component: () => import('@/views/card/gift/gift-card-action')
  // },
  // {
  //   path: '/client/card_list',
  //   name: 'ClientCardList',
  //   props: true,
  //   meta: {
  //     title: '客户优惠卡'
  //   },
  //   component: () => import('@/views/card/client/client-card')
  // },
  // {
  //   path: '/client/:retailer_id/:card_id/detail',
  //   name: 'ClientCardDetail',
  //   props: true,
  //   meta: {
  //     title: '客户优惠卡详情'
  //   },
  //   component: () => import('@/views/card/client/client-card-detail')
  // },
  // {
  //   path: '/client/usused_card_list',
  //   name: 'ClientUnusedCardList',
  //   props: true,
  //   meta: {
  //     title: '客户待激活优惠卡'
  //   },
  //   component: () => import('@/views/card/client/client-card-unused')
  // },
  {
    path: '/client/client_sample_record',
    name: 'ClientSampleRecord',
    props: true,
    meta: {
      title: '客户品鉴卡核销记录'
    },
    component: () => import('@/views/card/client/client-sample-record')
  },
  {
    path: '/client/sample_card_list',
    name: 'SampleCardList',
    props: true,
    meta: {
      title: '免费品鉴卡列表'
    },
    component: () => import('@/views/card/client/sample-card-list')
  },

  // {
  //   path: '/client/:card_id/qrcode',
  //   name: 'ClientCardQrCode',
  //   props: true,
  //   meta: {
  //     title: '客户消费二维码'
  //   },
  //   component: () => import('@/views/card/client/client-consume-qrcode')
  // },
  // {
  //   path: '/client/:card_id/card_consume',
  //   name: 'ClientCardConsume',
  //   props: true,
  //   meta: {
  //     title: '客户优惠卡消费'
  //   },
  //   component: () => import('@/views/card/client/client-consume-action')
  // },
  // {
  //   path: '/retailer/:retailer_id/card_consume_list',
  //   name: 'CardConsumeList',
  //   props: true,
  //   meta: {
  //     title: '优惠卡消费记录'
  //   },
  //   component: () => import('@/views/card/card-consume-list')
  // },
  // {
  //   path: '/retailer/:retailer_id/bill',
  //   name: 'RetailerBill',
  //   redirect: "/retailer/:retailer_id/bill/gift_bill",
  //   props: true,
  //   meta: {
  //     title: '商家账单查询'
  //   },
  //   component: () => import('@/views/card/bill/'),
  //   children: [
  //     {
  //       path: 'gift_bill',
  //       name: 'GiftBill',
  //       props: true,
  //       meta: {
  //         title: '赠卡账单'
  //       },
  //       component: () => import('@/views/card/bill/gift-bill')
  //     },
  //     {
  //       path: 'consume_bill',
  //       name: 'ConsumeBill',
  //       props: true,
  //       meta: {
  //         title: '核销账单'
  //       },
  //       component: () => import('@/views/card/bill/consume-bill')
  //     },
  //     {
  //       path: 'balance_bill',
  //       name: 'BalanceBill',
  //       props: true,
  //       meta: {
  //         title: '结算账单'
  //       },
  //       component: () => import('@/views/card/bill/balance-bill')
  //     },
  //   ]
  // },
  {
    path: '/retailer/balance_account',
    name: 'BalanceAccount',
    props: true,
    meta: {
      title: '结算'
    },
    component: () => import('@/views/card/bill/balance-account')
  },
  {
    path: '/retailer/balance_account_list/:retailer_id',
    name: 'BalanceAccountList',
    props: true,
    meta: {
      title: '商家结算明细'
    },
    component: () => import('@/views/card/bill/balance-account-list')
  },

  {
    path: '/retailer/retailer_balance_account/',
    name: 'RetailerAccount',
    props: true,
    meta: {
      title: '商家结算'
    },
    component: () => import('@/views/card/bill/retailer-balance-account')
  },

]
export default cardRoute